<template>
   <div class="container" >
    <button class="btn" @click="open">打开对话框</button>
   </div>
   <div id="dialog-id" style="display:none;">
        双击666！
   </div>
</template>
<script>
import "jquery-ui/dist/jquery-ui.js"
import "jquery-ui/dist/themes/base/jquery-ui.min.css"

   export default {
     name: '',
     data: function(){
       return {
       }
     },
     methods:{
        open(){
            $("#dialog-id").dialog({
            autoOpen : false,
            width : 400,
            modal : true,
            resizable : false,
            title: '消息提示',
            buttons: [
                {
                text: "Ok",
                click: function() {
                $( this ).dialog( "close" );
                    }
                }
            ]
        });
        $("#dialog-id").dialog('open');
        },
     },
     mounted(){
        
     }
   }
</script>
<style>
  html,
  body, 
  #app{
    height: 100%;
  }
</style>
<style scoped>
   .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background-color: aliceblue;
   }
   .tr{
      width: 200px;
      flex-basis: 50px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      background-color: beige;
      align-items: center;
    }
   .second{
      background-color: aqua;
   }
</style>